package com.io.utility;


import java.io.FileOutputStream;
import java.io.ObjectOutputStream;
import java.io.Serializable;

import com.io.classesforutility.Person;
 
public class Serializer {
 
   public void serializeObject(Object object){
 
	   try{
 
		FileOutputStream fout = new FileOutputStream("serobject.ser");
		ObjectOutputStream oos = new ObjectOutputStream(fout);   
		oos.writeObject(object);
		oos.close();
 
	   }catch(Exception ex){
		   ex.printStackTrace();
	   }
   }
}